	<div class="indi-center-bg">
		<div class="indi-center">
			<div class="indi-center-box">
				<h2>个人中心</h2>
				<div class="indi-center-content clearfix">

					<?php include $this->getViewFile('//layouts/user/left') ?>






<div class="signUp-container">
		<?php $objForm = $this->beginWidget( 'CActiveForm', array('id' => 'SubmitForm')); ?>
			<table>
				<tr>
					<td>
						<label for="">会员名：</label>
					</td>
					<td>
						<?php  echo $model->UserName; ?></td>
				</tr>


				<tr>
					<td>
						<label for="">密码：</label>
					</td>
					<td>
						<input name="Password" class="signUp-price-common signUp-input-common" id="Password" type="password">
						<span>不修改密码无需填写</span>
					</td>
				</tr>

				<tr>
					<td>
						<label for="">新密码：</label>
					</td>
					<td>
						<input name="newPassword" class="signUp-price-common signUp-input-common" id="newPassword" type="password">					</td>
				</tr>


				<tr>
					<td>
						<label for="">确认新密码：</label>
					</td>
					<td>
						<input name="newPassword1" class="signUp-price-common signUp-input-common" id="newPassword1" type="password">					</td>
				</tr>
				<tr>
					<td>
						<label for=""><?php echo MemberModel::model()->getAttributeLabel( 'WangWang' ); ?>：</label>
					</td>
					<td>
						<?php  echo $objForm->textField($model, 'WangWang', array('name' => 'WangWang', 'class' => 'signUp-title signUp-input-common')) ?>
					</td>
				</tr>
				<tr>
					<td>
						<label for=""><?php echo MemberModel::model()->getAttributeLabel( 'Nickname' ); ?>：</label>
					</td>
					<td>
						<?php  echo $objForm->textField($model, 'Nickname', array('name' => 'Nickname', 'class' => 'signUp-title signUp-input-common')) ?>
					</td>
				</tr>




				<tr>

					<td>
						<label for="">性别：</label>
					</td>					

					<td>
						
						<div id="divselect">
								<?php if(empty($model->Gender)){  ?>
									<cite>请选择性别</cite>
								<?php }else{ ?>
									<cite><?php echo $model->Gender; ?></cite>

								<?php  } ?>

												      <ul>
					      						      	 <li><a href="javascript:;" selectid="1">男</a></li>
					      						      	 <li><a href="javascript:;" selectid="2">女</a></li>
					         					      </ul>
					  </div>
					  						    <input name="Gender" type="hidden" value="" id="Gender">
					</td>
				</tr>





				
			</table>
			<div class="signUp-bottom">
				<button>提交</button>
			</div>
		<?php $this->endWidget(); ?>
</div>		
				</div>
			</div>
		</div>
	</div>		

	<script src="<?php  echo yii::app()->theme->baseUrl ?>/assets/js/jquery.js"></script>
	<script src="<?php  echo yii::app()->theme->baseUrl ?>/assets/js/divselect.js"></script>
	<script>
		$.divselect("#divselect","#inputselect");
		var signUpBg = document.getElementById('signUpBg'),
			bg = document.getElementById('bg'),
			change = true;
		bg.onclick = function() {
			if(change) {
				signUpBg.style.background = "url(<?php  echo yii::app()->theme->baseUrl ?>/assets/images/" + "indi_icon.png)";
				change = false;
			} else {
				signUpBg.style.background = "url(<?php  echo yii::app()->theme->baseUrl ?>/assets/images/" + "indi_icon_off.png)";
				change = true;
			}
		}

		$("form input").click(function() {
			$(".signUp-textInp").css({
				"border" : "none"
			})
			$("form input").css({
				"border" : "none"
			});
			$(this).css({
				"border" : "1px solid #ff97ae"
			});
		});
		$(".signUp-textInp").click(function() {
			$("form input").css({
				"border" : "none"
			});
			$(".signUp-textInp").css({
				"border" : "1px solid #ff97ae"
			})
		});
	</script>




    <script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/ajaxForm.js"></script> 
  <link rel="stylesheet" href="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/artDialog/skins/blue.css">
  <script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/statics/js/artDialog/artDialog.js"></script> 

  <script type="text/javascript">
	$(function(){
		var LOCK = false;

		$('#SubmitForm').ajaxForm({
			dataType:'json',		
			beforeSubmit:function(data, obj, es){
				if(LOCK){
					alert('正在处理');
					return false;
				}		
			},
			success:function(data){
				LOCK = false;
				if(data.status){
					alert('提交成功');	
					if(data.url){
						window.location.href = data.url;					
					}					
				}else{
					alert(data.info);					
				}
			}
		});

	})
  </script>
